package cn.comtom.ewbs.signature.entity;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
/**
 * <p>
 * 权限表
 * </p>
 *
 * @author liuhy
 * @since 2022-11-04 18:07:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_permission")
@ApiModel(value = "SysPermission对象", description = "权限表")
public class SysPermission extends Model<SysPermission> {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty("id")
    @TableId("id")
    private String id;
 
    @ApiModelProperty("权限名称")
    @TableField("name")
    private String name;
 
    @ApiModelProperty("权限描述")
    @TableField("descripion")
    private String descripion;
 
    @ApiModelProperty("授权链接")
    @TableField("url")
    private String url;
 
    @ApiModelProperty("是否跳转 0 不跳转 1跳转")
    @TableField("is_blank")
    private Integer isBlank;
 
    @ApiModelProperty("父节点id")
    @TableField("pid")
    private String pid;
 
    @ApiModelProperty("权限标识")
    @TableField("perms")
    private String perms;
 
    @ApiModelProperty("类型   0：目录   1：菜单   2：按钮")
    @TableField("type")
    private Integer type;
 
    @ApiModelProperty("菜单图标")
    @TableField("icon")
    private String icon;
 
    @ApiModelProperty("排序")
    @TableField("order_num")
    private Integer orderNum;
 
    @ApiModelProperty("是否可见")
    @TableField("visible")
    private Integer visible;
    
    @TableField(exist = false)
    private Integer childCount;
 
 
    @Override
    public Serializable pkVal() {
        return this.id;
    }
 
}